import { defHttp } from "@/utils/http";

// ERP 仓库停用表 API
export const whsDeApi = {
	// 查询仓库停用列表
	whsDeList: async (params: any) => {
		return await defHttp.get({ url: `/whs/whs-de/page`, params });
	},
	// 新增仓库停用
	whsDeCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/whs-de/create`, data });
	},

	// 修改仓库停用
	whsDeUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/whs-de/update`, data });
	},

	// 删除仓库停用
	whsDeDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/whs-de/delete?id=` + id });
	}
};
